package com.lee.mysql.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;

@ApiModel(description="表同步配置")
public class TableConfig implements Serializable {
   private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(name="主键",value="主键")
    private String id;

    /** 用户ID */
    @ApiModelProperty(name="用户ID",value="用户ID")
    private String userId;
    
    /** 配置名称 */
    @ApiModelProperty(name="配置名称",value="配置名称")
    private String name;
    
    /** 备注 */
    @ApiModelProperty(name="备注",value="备注")
    private String remark;
    
    /** 创建时间 */
    @ApiModelProperty(name="创建时间",value="创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    /** 是否启用 0不启用 1启用 */
    @ApiModelProperty(name="是否启用 0不启用 1启用",value="是否启用 0不启用 1启用")
    private String isEnable;

    /** 配置类型 1结构同步 2数据同步 */
    @ApiModelProperty(name="配置类型 1结构同步 2数据同步",value="配置类型 1结构同步 2数据同步")
    private String conType;

    /** 是否公开 0不公开 1公开 */
    @ApiModelProperty(name="是否公开 0不公开 1公开",value="是否公开 0不公开 1公开")
    private String isPublic;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public String getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(String isPublic) {
        this.isPublic = isPublic;
    }

    public String getConType() {
        return conType;
    }

    public void setConType(String conType) {
        this.conType = conType;
    }

    @Override
    public String toString() {
        return "TableConfig{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", isEnable='" + isEnable + '\'' +
                ", conType='" + conType + '\'' +
                ", isPublic='" + isPublic + '\'' +
                '}';
    }
}